package com.example.repository;

/**
 * com.example.repository.ProductRepository
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/11/1 00:25
 */

import com.example.index.Product;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ProductRepository extends ElasticsearchRepository<Product, String> {
    // 自定义查询方法
    List<Product> findByNameContaining(String keyword);

    List<Product> findByPriceBetween(Double min, Double max);

}